 <style>
.ttl{width:70px;text-align:right;display-inline:block;}
.pop_cont_input ul li {width:25%;float:left;}
.pop_cont_input{line-height:30px;} 
.pop_cont_input input{pading:0px 5px;} 
.pop_cont_input select{height:28px;}
.pop_cont .pop_cont_input li .textbox{border:1px #d2d2d2 solid; width:140px; display:inline-block;}
 
.pop_cont {
    background: white;
    min-width: 300px;
    height: auto;
    overflow: hidden;
    position: absolute;
    top: 4%;
    left: 50%;
    margin-left: -500px;
    border-radius: 5px 5px 0 0;
}
 </style>
 <!--引入JS-->
<script type="text/javascript" src="/static/admin/js/ajaxfileupload.js?t=1"></script>
<link rel="stylesheet" type="text/css" href="/static/My97DatePicker/skin/WdatePicker.css" />
<script charset="utf-8" src="/static/My97DatePicker/WdatePicker.js"></script>
  
 
 <div class="pop_cont" style="width:1000px;">
 <input type="hidden" value="<?php echo $id; ?>" id="editId" />
 <form autocomplete="off" action="#" id="myform">
      </form>
       <!--title-->
       <h3><?php echo $title;?><span class="falseBtn" style="color:red;float:right;font-size:18px;cursor:pointer;">X</span></h3>
       <!--content-->
       <div class="pop_cont_input">
        <ul>
         <li>
          <span class="ttl">登录账号</span>
          <input type="text" name="e-uname" id="e-uname" value=""  placeholder="登录账号" class="textbox" style="padding:0px;" autocomplete="off" />
         </li>
         <li>
          <span class="ttl">登录密码</span>
          <input type="password" name="e-psw" id="e-psw"  placeholder="请输入登录密码" class="textbox" style="padding:0px;" autocomplete="off" />
          
         </li>
           <li>
          <span class="ttl">真实姓名</span>
          <input type="text" name="e-nickname" id="e-nickname"  placeholder="请输入真实姓名" class="textbox" style="padding:0px;" autocomplete="off" />
          
         </li>
            <li>
                <span class="ttl">代理编号</span>
                <input type="text" name="e-acode" id="e-acode"  placeholder="请输入代理编号" class="textbox" style="padding:0px;" autocomplete="off" />
            </li>
          <li>
          <span class="ttl">余额</span>
          <input type="number" name="e-money" id="e-money"  placeholder="请输入余额" class="textbox" style="padding:0px;" autocomplete="off" />
          
         </li>
         
         <li>
          <span class="ttl">状态</span>
           <select name="e-group" id="e-group" class="select">
	       <option value="">--选择--</option>
	        <option value="0">--正常--</option>
	         <option value="1">--禁用--</option>
      </select>
         </li>
      
       
         
         
        
         
        
         <li style="width:100%;">
         <!--bottom:operate->button-->
	       <div class="btm_btn">
	        <input type="button" value="确认" class="input_btn trueBtn"/>
	        <input type="button" value="关闭" class="input_btn falseBtn"/>
	       </div>
         </li>
        </ul>
       </div>
      
    
 
  
      
         
       </div>
      <script>
     
      $(function(){
    	  
    	
     	 
    	 
	       $(".trueBtn").unbind().bind("click",function(){
			 
	    	var that =this;
   		    var url="/admin/agent/addData";
   		
   		    var uname=$("#e-uname").val();
   		    var nickname=$("#e-nickname").val();
   		    var psw=$("#e-psw").val();
   		    var money=$("#e-money").val();
   		    var stat=$('#e-group').val();
   		    var acode=$('#e-acode').val();

   		 if(uname=="")
		   {
		    	ErrTiShi("请输入登录账号");return false;
		   }
   		var unameLen = uname.length;
  		 if(unameLen<6 || unameLen >12)
  		 {
  			ErrTiShi("登录账号长度不正确，请输入6-12位长度的字符串");return false;
  		 }

               if(acode=="")
               {
                   ErrTiShi("请输入代理编号");return false;
               }
   		  
   		    var param={
   		    	   uname:uname,
   				   nickname:nickname,
                acode:acode,
   				    pwd:psw,
   				   money:money,
   				   stat:stat,
   				    
   				   sys_opt:'addData'//后台判断编辑操作
   		    };
			 AjaxRequest(url,param,function(data){
  			   if(data.err==0)
  			   {
  				   SuccessTiShi("操作成功");
  				   $(".pop_bg").fadeOut();
  				   $(".pop_bg").html('');
  				   myResearch();
  			   }
  			   else
  			   {
  				   ErrTiShi(data.msg);
  			   }
  		   	});
			 
		  });
		   //弹出：取消或关闭按钮
		   $(".falseBtn").unbind().bind("click",function(){
		
			 $(".pop_bg").fadeOut();
		   });
		   document.getElementById("myform").reset(); 
 	});
      </script>